import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router/index'
import { createPinia } from 'pinia'
import setupStore from '@/store/setupStore'
import '@/common/css/base.css'
// element-plus 引入
import 'element-plus/dist/index.css'
// import '@/mock/mockServe'
//引入持久化插件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const app = createApp(App)
app.use(router)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

app.use(pinia)
setupStore()

app.mount('#app')
